package com.fyl.pattern.adapter.class_adapter;

public class Client {
    public static void main(String[] args) {
        Computer computer = new Computer();
        String msg = computer.readSD(new SDCardImpl());
        System.out.println(msg);
        System.out.println("==========================");

        //读取TF卡中的数据
        //适配器类
        SDAdapterTF sdAdapterTF = new SDAdapterTF();
        String read = computer.readSD(sdAdapterTF);
        System.out.println("read = " + read);
    }
}
